package org.josircd.core.internal;

import org.josircd.config.ConfigService;
import org.josircd.core.internal.manager.IrcdManager;
import org.josircd.core.internal.util.IrcdConstants;

/**
 * org.josircd.core.internal
 *
 * @author richardju
 * @version 1.0
 */
public class IrcdRunner {

    /**
     * Configuration service.
     */
    private IrcdManager ircdManager;

    public IrcdRunner(IrcdManager ircdManager) {
        this.ircdManager = ircdManager;
        System.out.println(IrcdConstants.IRCD_VERSION + " JosIRCD starting.");
        System.out.println("More information available on http://code.google.com/p/josircd/");
        this.ircdManager.start();
    }

    public void shutdown() {
        this.ircdManager.shutdown();
    }
}
